/*
 * =====================================================================================
 *
 *       Filename:  sum.c
 *
 *    Description:  sum function
 *
 *        Version:  1.0
 *        Created:  09/24/2017 03:59:35 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME lzm, 
 *   Organization:  
 *
 * =====================================================================================
 */
int sum(int *a,int n)
{
	int i,s=0;

	for(i=0;i<n;i++)
		s+=a[i];
	return s;
}

